package day37.edu;
// Created: 07/10/2025, ChangJiang Ru
public class MyDate {
    private int year;
    private int month;
    private int day;

    public MyDate()
    {

    }

    public MyDate(int year, int month, int day)
    {
        this.year = year;
        this.month = month;
        this.day = day;
    }

    public void setYear(int year)
    {
        this.year = year;
    }
    public void setMonth(int month)
    {
        this.month = month;
    }
    public void setDay(int day)
    {
        this.day = day;
    }

    public int getYear()
    {
        return this.year;
    }
    public int getMonth()
    {
        return this.month;
    }
    public int getDay()
    {
        return this.day;
    }

    @Override
    public String toString()
    {
        return this.getYear() + "year " + this.getMonth() + "month " + this.getDay();
    }

}
